Skip to content

ci: publish prereleases to named npm channels - #491

Merged
chrispader merged 2 commits into
mainfrom
ci/prerelease-lanes
Nov 13, 2026
Merged

chrispader merged 2 commits into
mainfrom
ci/prerelease-lanes

Conversation

@chrispader

Copy link
Copy Markdown
Member

The Release workflow only accepts stable versions, so we can't publish a preview from a branch like the Nitro V1 lane. This PR lets the workflow take an exact prerelease version and publish it to an npm channel named after the prerelease, without touching latest.

For example, running the workflow on a branch with version 11.0.0-nitro-v1.0 publishes both packages under the nitro-v1 dist-tag, so users install them with react-native-nitro-sqlite@nitro-v1. The GitHub release is marked as a prerelease. Later runs on that branch can pass prerelease to publish 11.0.0-nitro-v1.1, and patch, minor, or major from a prerelease finishes that version (11.0.0-nitro-v1.3 becomes 11.0.0). Stable releases and the maintenance channels work as before. The release docs describe the new channels.

A branch needs these release scripts before it can publish a prerelease, the same as maintenance branches.

🤖 Generated with Claude Code

The Release workflow accepted only stable versions, so a branch like the
Nitro V1 lane could not publish a preview. Exact prerelease versions such
as 11.0.0-nitro-v1.0 now publish to an npm channel named after their
prerelease identifiers, never move latest, and mark the GitHub release as
a prerelease. A new prerelease increment continues a channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
react-native-nitro-sqlite Ignored Ignored Preview Nov 13, 2026 9:01am UTC

Request Review

Release Please's JSON updater stops matching a prerelease at the first
hyphen, so bumping 11.0.0-nitro-v1.0 wrote 11.0.0-nitro-v1.1-v1.0 into
the package manifests. The patch lets prerelease identifiers contain
hyphens, as semantic versioning allows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chrispader
chrispader merged commit 3cfd205 into main Nov 13, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant